import request from '@/utils/request'

// 查询工序执行记录列表
export function listRecords(query) {
  return request({
    url: '/production-service/production/records/list',
    method: 'get',
    params: query
  })
}

// 查询工序执行记录详细
export function getRecords(recordId) {
  return request({
    url: '/production-service/production/records/' + recordId,
    method: 'get'
  })
}

// 新增工序执行记录
export function addRecords(data) {
  return request({
    url: '/production-service/production/records',
    method: 'post',
    data: data
  })
}

// 修改工序执行记录
export function updateRecords(data) {
  return request({
    url: '/production-service/production/records',
    method: 'put',
    data: data
  })
}

// 删除工序执行记录
export function delRecords(recordId) {
  return request({
    url: '/production-service/production/records/' + recordId,
    method: 'delete'
  })
}
